import request from '@/utils/request';
 
// 查询参数列表 角色列表
export function roleList(data) {
  return request({
    url: '/ssystem-api/api/auth/roleList',
    method: 'post',
    data: data,
  });
}
// 新增用户，查询角色
export function myRoleList(data) {
  return request({
    url: '/ssystem-api/api/auth/myRoleList',
    method: 'post',
    data: data,
  });
}
export function accountCreate(data) {
  return request({
    url: '/ssystem-api/api/account/accountCreate',
    method: 'post',
    data: data,
  });
}
export function accountList(data) {
  return request({
    url: '/ssystem-api/api/account/accountList',
    method: 'post',
    data: data,
  });
}
 
export function accountDel(data) {
  return request({
    url: '/ssystem-api/api/account/accountDel',
    method: 'post',
    data: data,
  });
}
 
// 权限列表
export function ruleList(data) {
  return request({
    url: '/ssystem-api/api/auth/ruleList',
    method: 'post',
    data: data,
  });
}
 
// 添加新角色权限
export function roleCreate(data) {
  return request({
    url: '/ssystem-api/api/auth/roleCreate',
    method: 'post',
    data: data,
  });
}
 
// 删除新角色权限
export function roleDel(data) {
  return request({
    url: '/ssystem-api/api/auth/roleDel',
    method: 'post',
    data: data,
  });
}
 
// 更新权限
export function accessCreate(data) {
  return request({
    url: '/ssystem-api/api/auth/accessCreate',
    method: 'post',
    data: data,
  });
}
